﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using _1.ComplexNumbers.Model;

namespace _1.ComplexNumbers
{
    class Program
    {
        static void Main(string[] args)
        {
            var c = new ComplexNumber(1, 2);
            var c2 = new ComplexNumber(3, 4);
            Console.WriteLine(c * c2);

            double d = 1.234;
            ComplexNumber c3 = d; // implicit cast            
            Console.WriteLine(c3);

            ComplexNumber c4 = new ComplexNumber(1.9, 5.7);
            double d2 = (double)c4; // explicit cast 
            Console.WriteLine(d2);
        }
    }
}
